home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / WindowMaker / src / kwm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-10  |  2.8 KB  |  103 lines

  1. /* kde.h-- stuff for support for kde hints
  2.  * 
  3.  *  Window Maker window manager
  4.  * 
  5.  *  Copyright (c) 1998, 1999 Alfredo K. Kojima
  6.  * 
  7.  *  This program is free software; you can redistribute it and/or modify
  8.  *  it under the terms of the GNU General Public License as published by
  9.  *  the Free Software Foundation; either version 2 of the License, or
  10.  *  (at your option) any later version.
  11.  *
  12.  *  This program is distributed in the hope that it will be useful,
  13.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *  GNU General Public License for more details.
  16.  *
  17.  *  You should have received a copy of the GNU General Public License
  18.  *  along with this program; if not, write to the Free Software
  19.  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
  20.  *  USA.
  21.  */
  22.  
  23. #ifndef _KWM_H_
  24. #define _KWM_H_
  25.  
  26. typedef enum {
  27.     KWMStickyFlag = (1<<0),
  28.     KWMMaximizedFlag = (1<<1),
  29.     KWMIconifiedFlag = (1<<2),
  30.     KWMAllFlags = 7
  31. } WKWMStateFlag;
  32.  
  33. typedef enum {
  34.     WKWMAddWindow,
  35.     WKWMRemoveWindow,
  36.     WKWMFocusWindow,
  37.     WKWMRaiseWindow,
  38.     WKWMLowerWindow,
  39.     WKWMChangedClient,
  40.     WKWMIconChange
  41. } WKWMEventMessage;
  42.  
  43.  
  44. void wKWMInitStuff(WScreen *scr);
  45.  
  46. Bool wKWMGetUsableArea(WScreen *scr, WArea *area);
  47.  
  48. void wKWMCheckClientHints(WWindow *wwin, int *layer, int *workspace);
  49.  
  50. Bool wKWMCheckClientHintChange(WWindow *wwin, XPropertyEvent *event);
  51.  
  52. Bool wKWMCheckRootHintChange(WScreen *scr, XPropertyEvent *event);
  53.  
  54. void wKWMUpdateWorkspaceCountHint(WScreen *scr);
  55.  
  56. void wKWMUpdateWorkspaceNameHint(WScreen *scr, int workspace);
  57.  
  58. void wKWMUpdateCurrentWorkspaceHint(WScreen *scr);
  59.  
  60. Bool wKWMProcessClientMessage(XClientMessageEvent *event);
  61.  
  62. void wKWMUpdateClientGeometryRestore(WWindow *wwin);
  63.  
  64. void wKWMUpdateClientWorkspace(WWindow *wwin);
  65.  
  66. void wKWMUpdateClientStateHint(WWindow *wwin, WKWMStateFlag flags);
  67.  
  68. Bool wKWMManageableClient(WScreen *scr, Window win, char *title);
  69.  
  70. void wKWMCheckClientInitialState(WWindow *wwin);
  71.  
  72. #ifdef not_used
  73. void wKWMSetUsableAreaHint(WScreen *scr, int workspace);
  74. #endif
  75.  
  76. void wKWMSetInitializedHint(WScreen *scr);
  77.  
  78. void wKWMShutdown(WScreen *scr, Bool closeModules);
  79.  
  80. void wKWMCheckModule(WScreen *scr, Window window);
  81.  
  82. void wKWMSendWindowCreateMessage(WWindow *wwin, Bool create);
  83.  
  84. void wKWMSendEventMessage(WWindow *wwin, WKWMEventMessage message);
  85.  
  86. void wKWMCheckDestroy(XDestroyWindowEvent *event);
  87.  
  88. void wKWMUpdateActiveWindowHint(WScreen *scr);
  89.  
  90. void wKWMSendStacking(WScreen *scr, Window module);
  91.  
  92. void wKWMBroadcastStacking(WScreen *scr);
  93.  
  94. char *wKWMGetWorkspaceName(WScreen *scr, int workspace);
  95.  
  96. Bool wKWMGetIconGeometry(WWindow *wwin, WArea *area);
  97.  
  98. void wKWMSelectRootRegion(WScreen *scr, int x, int y, int w, int h, 
  99.               Bool control);
  100.  
  101. #endif
  102.  
  103.